package leetcode100;


/**
 * @Author tyy
 * @Description
 * @Since 2021/10/10
 */
public class Solution {
    public int rangeBitwiseAnd(int m, int n) {
        int result = m;
        int i;
        for (i =m;i<=n;i++) {
            result = result & i;
        }
        return result;
    }


    public static void main(String[] args) {
//        String haystack = "helloworld", needle = "or";
//        int i = new Solution().strStr(haystack,needle);
//        System.out.println("i = " + i);
    }
}
